<div class="type_question">
    <div class="questions">
        <!-- 单选 -->
        <div class="qs" *ngIf="this.data.type==1">
            <h3>{{this.data.qs}}</h3>
            <ul>
                <li *ngFor="let item of data.options;index as idx">
                    <p [ngClass]='{"selected":item.isSelected}' (click)="selectEle1(data,idx)">{{item.text}}</p>
                </li>
            </ul>
        </div>
        <!-- 多选题 -->
        <div class="qs" *ngIf="this.data.type==2">
            <h3>{{this.data.qs}}</h3>
            <ul>
                <li *ngFor="let item of data.options;index as idx">
                    <p [ngClass]='{"selected":item.isSelected}' (click)="selectEle2(data,item)">{{item.text}}</p>
                </li>
            </ul>
        </div>
        <!-- 提交按钮 -->
        <footer>
            <button (click)="submit(data)">提交</button>
            <p>{{this.data.tip}}</p>
        </footer>
    </div>
</div>